#-------------------------------------------------
#
# Project created by QtCreator 2012-05-18T12:26:09
#
#-------------------------------------------------

QT       += core

QT       -= gui

TARGET = MainProgram
CONFIG   += console
CONFIG   -= app_bundle

TEMPLATE = app


SOURCES += main.cpp \
    mainloopfunctions.cpp

HEADERS += \
    mainloopfunctions.h \
    definitions.h

LIBS += -L$$OUT_PWD/../CommunicationHandler/ -lCommunicationHandler
INCLUDEPATH += $$PWD/../CommunicationHandler \
               $$PWD/../../include/qextserialport \
                /usr/include
DEPENDPATH += $$PWD/../CommunicationHandler \
    $$PWD/../../include/qextserialport



LIBS += -L$$OUT_PWD/../GPSReader/ -lGPSReader
INCLUDEPATH += $$PWD/../GPSReader
DEPENDPATH += $$PWD/../GPSReader


LIBS += -L$$OUT_PWD/../I2CHandler/ -lI2CHandler
INCLUDEPATH += $$PWD/../I2CHandler
DEPENDPATH += $$PWD/../I2CHandler

LIBS += -L$$OUT_PWD/../BaroHandler/ -lBaroHandler
INCLUDEPATH += $$PWD/../BaroHandler
DEPENDPATH += $$PWD/../BaroHandler

LIBS += -L$$OUT_PWD/../ParrotHandler/ -lParrotHandler
INCLUDEPATH += $$PWD/../ParrotHandler
DEPENDPATH += $$PWD/../ParrotHandler

LIBS += -L$$OUT_PWD/../VideoProcessing/ -lVideoProcessing
INCLUDEPATH += $$PWD/../VideoProcessing
DEPENDPATH += $$PWD/../VideoProcessing


unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += opencv-2.3.1


linux-arm-gnueabi-g++{
    LIBS += -L$$PWD/../../libARM/qextserialport/ -lqextserialport-1.2 \
            -L$$PWD/../../libARM/libftdi/
}else{
    HARDWARE_PLATFORM = $$system(uname -m)
    message(Platform: $$HARDWARE_PLATFORM)
    contains( HARDWARE_PLATFORM, x86_64 ) {
        LIBS += -L$$PWD/../../lib/qextserialport/ -lqextserialport-1.2
    } else  {
        LIBS += -L$$PWD/../../lib32/qextserialport/ -lqextserialport-1.2
    }
}

LIBS += -lftdi
LIBS += -L$$OUT_PWD/../GroundStationCommunication/ -lGroundStationCommunication
INCLUDEPATH += $$PWD/../GroundStationCommunication
DEPENDPATH += $$PWD/../GroundStationCommunication
